package com.ahuan.service;

import com.ahuan.domain.Product;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;


public interface GoodsService {
    public List<Product> queryGoodsList(Integer page, Integer limit);

    boolean saveGoods(Product product);

    boolean deleteGoods(Long id);

    void saveBatchProduct(List<Product> cachedDataList);

    boolean saveFiles(List<MultipartFile> files) throws IOException;

    List<Product> ruku(String id, String code,Integer num);
}
